#include "key.h"
#include "led.h"
#include "usart1.h"
#include "buffer.h"


uint8_t buff[100]={0};
uint8_t size=0;
uint8_t isOver=0;

int main()
{
		led_init();
		key_init();
		USART_Init();
		USART_SendChar('A');
		USART_SendString((uint8_t *)"helloworld\r\n", 15);
	
		while(1)
		{	
			 if(isOver)
			 {
				 USART_SendString(buff, size);
				 isOver=0;
				 size=0;
			 }
			 if(isOver){
				 USART_SendChar('j');
			   GPIOC->ODR |= GPIO_ODR_ODR1;
				
			 }
		}
    return 0;
}